namespace SharpObjects.EventBus
{
    /// <summary>
    /// EventBus implements the Blackboard design pattern
    /// </summary>
    public class EventBus : IEventBus
    {
        public event ApplicationEventHandler ApplicationEvent;

        public void Publish(object applicationEvent)
        {
            if (this.ApplicationEvent != null)
            {
                this.ApplicationEvent(applicationEvent);
            }
        }
    }
}